﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GuestBook.Model
{
    public class GuestBookRecordModel 
    {
        public int Id { get; set; }

        [Required]
        [MaxLength(255)]
        public string UserName { get; set; }

        [Url]
        public string HomePageUrl { get; set; }

        [Required]
        [MaxLength(255)]
        [EmailAddress]
        public string Email { get; set; }

        [Required]
        public string Text { get; set; }
        [MaxLength(255)]
        public string UserIP { get; set; }
        [MaxLength(255)]
        public string UserBrowser { get; set; }
        public DateTime CreatedAt { get; set; }
    }
}